import request from "@/axios";

let baseURL = '/sys/#{database}'

export function list#{Database}(params){
    return request({
        url: baseURL + '/list',
        method: 'get',
        params: params
    })
}

export function total#{Database}(){
    return request({
        url: baseURL+'/total',
        method: 'get',
    })
}

export function select#{Database}(params){
    return request({
        url: baseURL + '/select',
        method: 'get',
        params: params
    })
}

export function delete#{Database}(params){
    return request({
        url: baseURL + '/delete',
        method: 'get',
        params: params
    })
}

export function update#{Database}(params){
    return request({
        url: baseURL + '/update',
        method: 'post',
        data: params
    })
}

export function insert#{Database}(params){
    return request({
        url: baseURL + '/insert',
        method: 'post',
        data: params
    })
}

export function deleteBatch#{Database}(params){
    return request({
        url: baseURL + '/deleteBatch',
        method: 'post',
        data: params
    })
}